<!DOCTYPE html>
<html>
<head>
  <title>RFID - FACCAT | Login</title>
  <%= stylesheet_link_tag    "application", media: "all", "data-turbolinks-track" => true %>
  <%= csrf_meta_tags %>
    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
      <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>
<body class="login-body">
	<section id="container" >
		<%= javascript_include_tag "application", "data-turbolinks-track" => true %>
		<div class="container login">
			<div class="row">
		    	<div class="col-md-4 col-md-offset-4">
		        	<h1 class="logo">          
		          		RFID - FACCAT
		        	</h1>
		        	<div class="panel">
		          		<div class="panel-body">
		            		<form class="form-signin form-ajax" name="form_login" method="post" action="<%= login_path %>">
		              			
		              			  <% if @login_error_flag %>
								  	<div class="alert alert-danger">
								  		<b>Não foi possível fazer login!</b><br /> 
								  		Os dados não conferem.
								  	</div>
								  <% end %>
		              			
		              			<div class="form-group">
		                			<input id="email"
		                     			   name="email"
		                     			   type="text"
		                     			   class="form-control"
		                     	  		   placeholder="E-mail"
		 				            	   autofocus
		                     		       tabindex="1">
		              			</div>
		              			<div class="form-group">
		                			<input id="password"
		                     			   name="password"
		                     			   type="password"
		                                   class="form-control"
		                                   tabindex="2"
		                     			   placeholder="Senha">
		              			</div>
		              			<div class="form-group">
		                			<input name="commit"
		                     			type="submit"
		                     			class="btn btn-lg btn-primary btn-block"
			                     			tabindex="3"
		                     			state="logging">
		              			</div>
		            		</form>
		          		</div>
		    		</div>
		      	</div>
			</div>
		</div>
	</section>
</body>
</html>
